//
//  UIScreen+additions.m
//  Tool
//
//  Created by ZJ on 17/2/15.
//  Copyright © 2017年 ZJ. All rights reserved.
//

#import "UIScreen+additions.h"

@implementation UIScreen (additions)

+ (CGFloat)zj_screenWith{
    
    return [UIScreen mainScreen].bounds.size.width;
}

+ (CGFloat)zj_screenHeight{
    return [UIScreen mainScreen].bounds.size.height;
}

+ (CGFloat)zj_textFontScale{
    return [UIScreen mainScreen].bounds.size.width / 375.0;
}

+ (CGFloat)zj_screenWScale{
    return [UIScreen mainScreen].bounds.size.width / 375.0;
}
+ (CGFloat)zj_screenHScale{
    if (LP_IsIphoneX) {
        return 1;
    }
    return [UIScreen mainScreen].bounds.size.height / 667.0;
}
@end
